package com.lst.api.service;

import com.lst.api.entity.LoanInfo;
import com.lst.api.vo.LoanInfoVo;
import com.lst.tools.mybatis.service.IBaseService;

import java.util.List;

/**
 * 贷款信息表业务层
 *
 * @author Frank
 * @date 2019-12-30 10:31:37
 * @version: V1.0
 */
public interface ILoanInfoService extends IBaseService<LoanInfo> {
    /**
     * 保存
     *
     * @param userId
     * @param applyNo
     * @param loanInfoVoList
     * @return
     */
    boolean saveOrUpdate(long userId, String applyNo, List<LoanInfoVo> loanInfoVoList);

    /**
     * 根据申请编号获取申请信息
     *
     * @param applyNo
     * @return
     */
    List<LoanInfo> listByApplyNo(String applyNo);
}
